<?php
	include "../include/lib_func.php";
	include "../include/item.php";
	//require_once "../include/db.class.php";
	
	$id_member = $_SESSION['id_member'];
	$id_pesanan = $_GET[id];
	
	global $db;
	$sql = "update pesanan set dichekout='Y' where id_member='$id_member' and id_pesanan='$id_pesanan'";
	 $q = $db->query($sql);
	 
	 view_pesanan_item($id_pesanan);
	
	echo "<script language='javascript'>window.location = '../chekout_finish.php'</script>";
?>